@extends('layouts.admin')
@section('content')
		<div class="alert alert-success">添加活动</div>
		@if(count($errors)>0)
			@if(is_object($errors))
				{{$errors->all()[0]}}
			@else
				{{$errors}}
			@endif
			{{--@foreach($errors->all() as $error)--}}
			{{--{{ $error}}--}}
			{{--@endforeach--}}
		@endif
		<form action="{{url('admin/action')}}" method="post">
		{{csrf_field()}}
			<div class="form-group">
				<label for="exampleInputEmail1">活动名称</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入套餐名称"  name="ac_name">
			</div>
			<div class="form-group">
					<label for="exampleInputEmail1">开始时间</label>
					<input id="exampleInputEmail1" class="form-control" type="datetime-local" placeholder="请输入活动开始时间"  name="starttime">
			</div>

			<div class="form-group">
				<label for="exampleInputEmail1">结束时间</label>
				<input id="exampleInputEmail1" class="form-control" type="datetime-local" placeholder="请输入活动结束时间"  name="endtime">
			</div>
			<div class="form-group">
				<label for="exampleInputEmail1">活动范围</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入活动内容"  name="ac_fanwei">
			</div>
		<div class="form-group">
			<label for="exampleInputEmail1">分类描述</label>
			<textarea name="ac_content" rows="5" cols=""  class="form-control" placeholder="请输入活动内容"></textarea>
		</div>
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
@endsection
